#coding:utf-8
#Function definition

###ex1
def position(x):
	the_list = [3,2,7,4,5,6,1,8,9,0]
	for y in range(0,len(the_list)):
		if x == the_list[y]:
			return (y+1)



###ex2:
def position(x):
	the_list=str('3810924567')
	return (the_list.find(str(x))+1)